home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / gcc-2.6.3-bin.lha / GNU / info / gcc.info-18 (.txt) < prev    next >
GNU Info File  |  1995-03-30  |  51KB  |  951 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.55 from the input
  2. file gcc.texi.
  3.    This file documents the use and the internals of the GNU compiler.
  4.    Published by the Free Software Foundation 675 Massachusetts Avenue
  5. Cambridge, MA 02139 USA
  6.    Copyright (C) 1988, 1989, 1992, 1993, 1994 Free Software Foundation,
  7.    Permission is granted to make and distribute verbatim copies of this
  8. manual provided the copyright notice and this permission notice are
  9. preserved on all copies.
  10.    Permission is granted to copy and distribute modified versions of
  11. this manual under the conditions for verbatim copying, provided also
  12. that the sections entitled "GNU General Public License," "Funding for
  13. Free Software," and "Protect Your Freedom--Fight `Look And Feel'" are
  14. included exactly as in the original, and provided that the entire
  15. resulting derived work is distributed under the terms of a permission
  16. notice identical to this one.
  17.    Permission is granted to copy and distribute translations of this
  18. manual into another language, under the above conditions for modified
  19. versions, except that the sections entitled "GNU General Public
  20. License," "Funding for Free Software," and "Protect Your Freedom--Fight
  21. `Look And Feel'", and this permission notice, may be included in
  22. translations approved by the Free Software Foundation instead of in the
  23. original English.
  24. File: gcc.info,  Node: Driver,  Next: Run-time Target,  Up: Target Macros
  25. Controlling the Compilation Driver, `gcc'
  26. =========================================
  27.    You can control the compilation driver.
  28. `SWITCH_TAKES_ARG (CHAR)'
  29.      A C expression which determines whether the option `-CHAR' takes
  30.      arguments.  The value should be the number of arguments that
  31.      option takes-zero, for many options.
  32.      By default, this macro is defined to handle the standard options
  33.      properly.  You need not define it unless you wish to add additional
  34.      options which take arguments.
  35. `WORD_SWITCH_TAKES_ARG (NAME)'
  36.      A C expression which determines whether the option `-NAME' takes
  37.      arguments.  The value should be the number of arguments that
  38.      option takes-zero, for many options.  This macro rather than
  39.      `SWITCH_TAKES_ARG' is used for multi-character option names.
  40.      By default, this macro is defined as
  41.      `DEFAULT_WORD_SWITCH_TAKES_ARG', which handles the standard options
  42.      properly.  You need not define `WORD_SWITCH_TAKES_ARG' unless you
  43.      wish to add additional options which take arguments.  Any
  44.      redefinition should call `DEFAULT_WORD_SWITCH_TAKES_ARG' and then
  45.      check for additional options.
  46. `SWITCHES_NEED_SPACES'
  47.      A string-valued C expression which is nonempty if the linker needs
  48.      a space between the `-L' or `-o' option and its argument.
  49.      If this macro is not defined, the default value is 0.
  50. `CPP_SPEC'
  51.      A C string constant that tells the GNU CC driver program options to
  52.      pass to CPP.  It can also specify how to translate options you
  53.      give to GNU CC into options for GNU CC to pass to the CPP.
  54.      Do not define this macro if it does not need to do anything.
  55. `NO_BUILTIN_SIZE_TYPE'
  56.      If this macro is defined, the preprocessor will not define the
  57.      builtin macro `__SIZE_TYPE__'.  The macro `__SIZE_TYPE__' must
  58.      then be defined by `CPP_SPEC' instead.
  59.      This should be defined if `SIZE_TYPE' depends on target dependent
  60.      flags which are not accessible to the preprocessor.  Otherwise, it
  61.      should not be defined.
  62. `NO_BUILTIN_PTRDIFF_TYPE'
  63.      If this macro is defined, the preprocessor will not define the
  64.      builtin macro `__PTRDIFF_TYPE__'.  The macro `__PTRDIFF_TYPE__'
  65.      must then be defined by `CPP_SPEC' instead.
  66.      This should be defined if `PTRDIFF_TYPE' depends on target
  67.      dependent flags which are not accessible to the preprocessor.
  68.      Otherwise, it should not be defined.
  69. `SIGNED_CHAR_SPEC'
  70.      A C string constant that tells the GNU CC driver program options to
  71.      pass to CPP.  By default, this macro is defined to pass the option
  72.      `-D__CHAR_UNSIGNED__' to CPP if `char' will be treated as
  73.      `unsigned char' by `cc1'.
  74.      Do not define this macro unless you need to override the default
  75.      definition.
  76. `CC1_SPEC'
  77.      A C string constant that tells the GNU CC driver program options to
  78.      pass to `cc1'.  It can also specify how to translate options you
  79.      give to GNU CC into options for GNU CC to pass to the `cc1'.
  80.      Do not define this macro if it does not need to do anything.
  81. `CC1PLUS_SPEC'
  82.      A C string constant that tells the GNU CC driver program options to
  83.      pass to `cc1plus'.  It can also specify how to translate options
  84.      you give to GNU CC into options for GNU CC to pass to the
  85.      `cc1plus'.
  86.      Do not define this macro if it does not need to do anything.
  87. `ASM_SPEC'
  88.      A C string constant that tells the GNU CC driver program options to
  89.      pass to the assembler.  It can also specify how to translate
  90.      options you give to GNU CC into options for GNU CC to pass to the
  91.      assembler.  See the file `sun3.h' for an example of this.
  92.      Do not define this macro if it does not need to do anything.
  93. `ASM_FINAL_SPEC'
  94.      A C string constant that tells the GNU CC driver program how to
  95.      run any programs which cleanup after the normal assembler.
  96.      Normally, this is not needed.  See the file `mips.h' for an
  97.      example of this.
  98.      Do not define this macro if it does not need to do anything.
  99. `LINK_SPEC'
  100.      A C string constant that tells the GNU CC driver program options to
  101.      pass to the linker.  It can also specify how to translate options
  102.      you give to GNU CC into options for GNU CC to pass to the linker.
  103.      Do not define this macro if it does not need to do anything.
  104. `LIB_SPEC'
  105.      Another C string constant used much like `LINK_SPEC'.  The
  106.      difference between the two is that `LIB_SPEC' is used at the end
  107.      of the command given to the linker.
  108.      If this macro is not defined, a default is provided that loads the
  109.      standard C library from the usual place.  See `gcc.c'.
  110. `STARTFILE_SPEC'
  111.      Another C string constant used much like `LINK_SPEC'.  The
  112.      difference between the two is that `STARTFILE_SPEC' is used at the
  113.      very beginning of the command given to the linker.
  114.      If this macro is not defined, a default is provided that loads the
  115.      standard C startup file from the usual place.  See `gcc.c'.
  116. `ENDFILE_SPEC'
  117.      Another C string constant used much like `LINK_SPEC'.  The
  118.      difference between the two is that `ENDFILE_SPEC' is used at the
  119.      very end of the command given to the linker.
  120.      Do not define this macro if it does not need to do anything.
  121. `LINK_LIBGCC_SPECIAL'
  122.      Define this macro meaning that `gcc' should find the library
  123.      `libgcc.a' by hand, rather than passing the argument `-lgcc' to
  124.      tell the linker to do the search; also, `gcc' should not generate
  125.      `-L' options to pass to the linker (as it normally does).
  126. `LINK_LIBGCC_SPECIAL_1'
  127.      Define this macro meaning that `gcc' should find the library
  128.      `libgcc.a' by hand, rather than passing the argument `-lgcc' to
  129.      tell the linker to do the search.
  130. `RELATIVE_PREFIX_NOT_LINKDIR'
  131.      Define this macro to tell `gcc' that it should only translate a
  132.      `-B' prefix into a `-L' linker option if the prefix indicates an
  133.      absolute file name.
  134. `STANDARD_EXEC_PREFIX'
  135.      Define this macro as a C string constant if you wish to override
  136.      the standard choice of `/usr/local/lib/gcc-lib/' as the default
  137.      prefix to try when searching for the executable files of the
  138.      compiler.
  139. `MD_EXEC_PREFIX'
  140.      If defined, this macro is an additional prefix to try after
  141.      `STANDARD_EXEC_PREFIX'.  `MD_EXEC_PREFIX' is not searched when the
  142.      `-b' option is used, or the compiler is built as a cross compiler.
  143. `STANDARD_STARTFILE_PREFIX'
  144.      Define this macro as a C string constant if you wish to override
  145.      the standard choice of `/usr/local/lib/' as the default prefix to
  146.      try when searching for startup files such as `crt0.o'.
  147. `MD_STARTFILE_PREFIX'
  148.      If defined, this macro supplies an additional prefix to try after
  149.      the standard prefixes.  `MD_EXEC_PREFIX' is not searched when the
  150.      `-b' option is used, or when the compiler is built as a cross
  151.      compiler.
  152. `MD_STARTFILE_PREFIX_1'
  153.      If defined, this macro supplies yet another prefix to try after the
  154.      standard prefixes.  It is not searched when the `-b' option is
  155.      used, or when the compiler is built as a cross compiler.
  156. `LOCAL_INCLUDE_DIR'
  157.      Define this macro as a C string constant if you wish to override
  158.      the standard choice of `/usr/local/include' as the default prefix
  159.      to try when searching for local header files.  `LOCAL_INCLUDE_DIR'
  160.      comes before `SYSTEM_INCLUDE_DIR' in the search order.
  161.      Cross compilers do not use this macro and do not search either
  162.      `/usr/local/include' or its replacement.
  163. `SYSTEM_INCLUDE_DIR'
  164.      Define this macro as a C string constant if you wish to specify a
  165.      system-specific directory to search for header files before the
  166.      standard directory.  `SYSTEM_INCLUDE_DIR' comes before
  167.      `STANDARD_INCLUDE_DIR' in the search order.
  168.      Cross compilers do not use this macro and do not search the
  169.      directory specified.
  170. `STANDARD_INCLUDE_DIR'
  171.      Define this macro as a C string constant if you wish to override
  172.      the standard choice of `/usr/include' as the default prefix to try
  173.      when searching for header files.
  174.      Cross compilers do not use this macro and do not search either
  175.      `/usr/include' or its replacement.
  176. `INCLUDE_DEFAULTS'
  177.      Define this macro if you wish to override the entire default
  178.      search path for include files.  The default search path includes
  179.      `GCC_INCLUDE_DIR', `LOCAL_INCLUDE_DIR', `SYSTEM_INCLUDE_DIR',
  180.      `GPLUSPLUS_INCLUDE_DIR', and `STANDARD_INCLUDE_DIR'.  In addition,
  181.      `GPLUSPLUS_INCLUDE_DIR' and `GCC_INCLUDE_DIR' are defined
  182.      automatically by `Makefile', and specify private search areas for
  183.      GCC.  The directory `GPLUSPLUS_INCLUDE_DIR' is used only for C++
  184.      programs.
  185.      The definition should be an initializer for an array of structures.
  186.      Each array element should have two elements: the directory name (a
  187.      string constant) and a flag for C++-only directories.  Mark the
  188.      end of the array with a null element.  For example, here is the
  189.      definition used for VMS:
  190.           #define INCLUDE_DEFAULTS \
  191.           {                                       \
  192.             { "GNU_GXX_INCLUDE:", 1},             \
  193.             { "GNU_CC_INCLUDE:", 0},              \
  194.             { "SYS$SYSROOT:[SYSLIB.]", 0},        \
  195.             { ".", 0},                            \
  196.             { 0, 0}                               \
  197.           }
  198.    Here is the order of prefixes tried for exec files:
  199.   1. Any prefixes specified by the user with `-B'.
  200.   2. The environment variable `GCC_EXEC_PREFIX', if any.
  201.   3. The directories specified by the environment variable
  202.      `COMPILER_PATH'.
  203.   4. The macro `STANDARD_EXEC_PREFIX'.
  204.   5. `/usr/lib/gcc/'.
  205.   6. The macro `MD_EXEC_PREFIX', if any.
  206.    Here is the order of prefixes tried for startfiles:
  207.   1. Any prefixes specified by the user with `-B'.
  208.   2. The environment variable `GCC_EXEC_PREFIX', if any.
  209.   3. The directories specified by the environment variable
  210.      `LIBRARY_PATH'.
  211.   4. The macro `STANDARD_EXEC_PREFIX'.
  212.   5. `/usr/lib/gcc/'.
  213.   6. The macro `MD_EXEC_PREFIX', if any.
  214.   7. The macro `MD_STARTFILE_PREFIX', if any.
  215.   8. The macro `STANDARD_STARTFILE_PREFIX'.
  216.   9. `/lib/'.
  217.  10. `/usr/lib/'.
  218. File: gcc.info,  Node: Run-time Target,  Next: Storage Layout,  Prev: Driver,  Up: Target Macros
  219. Run-time Target Specification
  220. =============================
  221.    Here are run-time target specifications.
  222. `CPP_PREDEFINES'
  223.      Define this to be a string constant containing `-D' options to
  224.      define the predefined macros that identify this machine and system.
  225.      These macros will be predefined unless the `-ansi' option is
  226.      specified.
  227.      In addition, a parallel set of macros are predefined, whose names
  228.      are made by appending `__' at the beginning and at the end.  These
  229.      `__' macros are permitted by the ANSI standard, so they are
  230.      predefined regardless of whether `-ansi' is specified.
  231.      For example, on the Sun, one can use the following value:
  232.           "-Dmc68000 -Dsun -Dunix"
  233.      The result is to define the macros `__mc68000__', `__sun__' and
  234.      `__unix__' unconditionally, and the macros `mc68000', `sun' and
  235.      `unix' provided `-ansi' is not specified.
  236. `STDC_VALUE'
  237.      Define the value to be assigned to the built-in macro `__STDC__'.
  238.      The default is the value `1'.
  239. `extern int target_flags;'
  240.      This declaration should be present.
  241. `TARGET_...'
  242.      This series of macros is to allow compiler command arguments to
  243.      enable or disable the use of optional features of the target
  244.      machine.  For example, one machine description serves both the
  245.      68000 and the 68020; a command argument tells the compiler whether
  246.      it should use 68020-only instructions or not.  This command
  247.      argument works by means of a macro `TARGET_68020' that tests a bit
  248.      in `target_flags'.
  249.      Define a macro `TARGET_FEATURENAME' for each such option.  Its
  250.      definition should test a bit in `target_flags'; for example:
  251.           #define TARGET_68020 (target_flags & 1)
  252.      One place where these macros are used is in the
  253.      condition-expressions of instruction patterns.  Note how
  254.      `TARGET_68020' appears frequently in the 68000 machine description
  255.      file, `m68k.md'.  Another place they are used is in the
  256.      definitions of the other macros in the `MACHINE.h' file.
  257. `TARGET_SWITCHES'
  258.      This macro defines names of command options to set and clear bits
  259.      in `target_flags'.  Its definition is an initializer with a
  260.      subgrouping for each command option.
  261.      Each subgrouping contains a string constant, that defines the
  262.      option name, and a number, which contains the bits to set in
  263.      `target_flags'.  A negative number says to clear bits instead; the
  264.      negative of the number is which bits to clear.  The actual option
  265.      name is made by appending `-m' to the specified name.
  266.      One of the subgroupings should have a null string.  The number in
  267.      this grouping is the default value for `target_flags'.  Any target
  268.      options act starting with that value.
  269.      Here is an example which defines `-m68000' and `-m68020' with
  270.      opposite meanings, and picks the latter as the default:
  271.           #define TARGET_SWITCHES \
  272.             { { "68020", 1},      \
  273.               { "68000", -1},     \
  274.               { "", 1}}
  275. `TARGET_OPTIONS'
  276.      This macro is similar to `TARGET_SWITCHES' but defines names of
  277.      command options that have values.  Its definition is an
  278.      initializer with a subgrouping for each command option.
  279.      Each subgrouping contains a string constant, that defines the
  280.      fixed part of the option name, and the address of a variable.  The
  281.      variable, type `char *', is set to the variable part of the given
  282.      option if the fixed part matches.  The actual option name is made
  283.      by appending `-m' to the specified name.
  284.      Here is an example which defines `-mshort-data-NUMBER'.  If the
  285.      given option is `-mshort-data-512', the variable `m88k_short_data'
  286.      will be set to the string `"512"'.
  287.           extern char *m88k_short_data;
  288.           #define TARGET_OPTIONS \
  289.            { { "short-data-", &m88k_short_data } }
  290. `TARGET_VERSION'
  291.      This macro is a C statement to print on `stderr' a string
  292.      describing the particular machine description choice.  Every
  293.      machine description should define `TARGET_VERSION'.  For example:
  294.           #ifdef MOTOROLA
  295.           #define TARGET_VERSION \
  296.             fprintf (stderr, " (68k, Motorola syntax)");
  297.           #else
  298.           #define TARGET_VERSION \
  299.             fprintf (stderr, " (68k, MIT syntax)");
  300.           #endif
  301. `OVERRIDE_OPTIONS'
  302.      Sometimes certain combinations of command options do not make
  303.      sense on a particular target machine.  You can define a macro
  304.      `OVERRIDE_OPTIONS' to take account of this.  This macro, if
  305.      defined, is executed once just after all the command options have
  306.      been parsed.
  307.      Don't use this macro to turn on various extra optimizations for
  308.      `-O'.  That is what `OPTIMIZATION_OPTIONS' is for.
  309. `OPTIMIZATION_OPTIONS (LEVEL)'
  310.      Some machines may desire to change what optimizations are
  311.      performed for various optimization levels.   This macro, if
  312.      defined, is executed once just after the optimization level is
  313.      determined and before the remainder of the command options have
  314.      been parsed.  Values set in this macro are used as the default
  315.      values for the other command line options.
  316.      LEVEL is the optimization level specified; 2 if `-O2' is
  317.      specified, 1 if `-O' is specified, and 0 if neither is specified.
  318.      You should not use this macro to change options that are not
  319.      machine-specific.  These should uniformly selected by the same
  320.      optimization level on all supported machines.  Use this macro to
  321.      enable machbine-specific optimizations.
  322.      *Do not examine `write_symbols' in this macro!* The debugging
  323.      options are not supposed to alter the generated code.
  324. `CAN_DEBUG_WITHOUT_FP'
  325.      Define this macro if debugging can be performed even without a
  326.      frame pointer.  If this macro is defined, GNU CC will turn on the
  327.      `-fomit-frame-pointer' option whenever `-O' is specified.
  328. File: gcc.info,  Node: Storage Layout,  Next: Type Layout,  Prev: Run-time Target,  Up: Target Macros
  329. Storage Layout
  330. ==============
  331.    Note that the definitions of the macros in this table which are
  332. sizes or alignments measured in bits do not need to be constant.  They
  333. can be C expressions that refer to static variables, such as the
  334. `target_flags'.  *Note Run-time Target::.
  335. `BITS_BIG_ENDIAN'
  336.      Define this macro to be the value 1 if the most significant bit in
  337.      a byte has the lowest number; otherwise define it to be the value
  338.      zero.  This means that bit-field instructions count from the most
  339.      significant bit.  If the machine has no bit-field instructions,
  340.      then this must still be defined, but it doesn't matter which value
  341.      it is defined to.
  342.      This macro does not affect the way structure fields are packed into
  343.      bytes or words; that is controlled by `BYTES_BIG_ENDIAN'.
  344. `BYTES_BIG_ENDIAN'
  345.      Define this macro to be 1 if the most significant byte in a word
  346.      has the lowest number.
  347. `WORDS_BIG_ENDIAN'
  348.      Define this macro to be 1 if, in a multiword object, the most
  349.      significant word has the lowest number.  This applies to both
  350.      memory locations and registers; GNU CC fundamentally assumes that
  351.      the order of words in memory is the same as the order in registers.
  352. `FLOAT_WORDS_BIG_ENDIAN'
  353.      Define this macro to be 1 if `DFmode', `XFmode' or `TFmode'
  354.      floating point numbers are stored in memory with the word
  355.      containing the sign bit at the lowest address; otherwise define it
  356.      to be 0.
  357.      You need not define this macro if the ordering is the same as for
  358.      multi-word integers.
  359. `BITS_PER_UNIT'
  360.      Define this macro to be the number of bits in an addressable
  361.      storage unit (byte); normally 8.
  362. `BITS_PER_WORD'
  363.      Number of bits in a word; normally 32.
  364. `MAX_BITS_PER_WORD'
  365.      Maximum number of bits in a word.  If this is undefined, the
  366.      default is `BITS_PER_WORD'.  Otherwise, it is the constant value
  367.      that is the largest value that `BITS_PER_WORD' can have at
  368.      run-time.
  369. `UNITS_PER_WORD'
  370.      Number of storage units in a word; normally 4.
  371. `MAX_UNITS_PER_WORD'
  372.      Maximum number of units in a word.  If this is undefined, the
  373.      default is `UNITS_PER_WORD'.  Otherwise, it is the constant value
  374.      that is the largest value that `UNITS_PER_WORD' can have at
  375.      run-time.
  376. `POINTER_SIZE'
  377.      Width of a pointer, in bits.
  378. `PROMOTE_MODE (M, UNSIGNEDP, TYPE)'
  379.      A macro to update M and UNSIGNEDP when an object whose type is
  380.      TYPE and which has the specified mode and signedness is to be
  381.      stored in a register.  This macro is only called when TYPE is a
  382.      scalar type.
  383.      On most RISC machines, which only have operations that operate on
  384.      a full register, define this macro to set M to `word_mode' if M is
  385.      an integer mode narrower than `BITS_PER_WORD'.  In most cases,
  386.      only integer modes should be widened because wider-precision
  387.      floating-point operations are usually more expensive than their
  388.      narrower counterparts.
  389.      For most machines, the macro definition does not change UNSIGNEDP.
  390.      However, some machines, have instructions that preferentially
  391.      handle either signed or unsigned quantities of certain modes.  For
  392.      example, on the DEC Alpha, 32-bit loads from memory and 32-bit add
  393.      instructions sign-extend the result to 64 bits.  On such machines,
  394.      set UNSIGNEDP according to which kind of extension is more
  395.      efficient.
  396.      Do not define this macro if it would never modify M.
  397. `PROMOTE_FUNCTION_ARGS'
  398.      Define this macro if the promotion described by `PROMOTE_MODE'
  399.      should also be done for outgoing function arguments.
  400. `PROMOTE_FUNCTION_RETURN'
  401.      Define this macro if the promotion described by `PROMOTE_MODE'
  402.      should also be done for the return value of functions.
  403.      If this macro is defined, `FUNCTION_VALUE' must perform the same
  404.      promotions done by `PROMOTE_MODE'.
  405. `PROMOTE_FOR_CALL_ONLY'
  406.      Define this macro if the promotion described by `PROMOTE_MODE'
  407.      should *only* be performed for outgoing function arguments or
  408.      function return values, as specified by `PROMOTE_FUNCTION_ARGS'
  409.      and `PROMOTE_FUNCTION_RETURN', respectively.
  410. `PARM_BOUNDARY'
  411.      Normal alignment required for function parameters on the stack, in
  412.      bits.  All stack parameters receive at least this much alignment
  413.      regardless of data type.  On most machines, this is the same as the
  414.      size of an integer.
  415. `STACK_BOUNDARY'
  416.      Define this macro if you wish to preserve a certain alignment for
  417.      the stack pointer.  The definition is a C expression for the
  418.      desired alignment (measured in bits).
  419.      If `PUSH_ROUNDING' is not defined, the stack will always be aligned
  420.      to the specified boundary.  If `PUSH_ROUNDING' is defined and
  421.      specifies a less strict alignment than `STACK_BOUNDARY', the stack
  422.      may be momentarily unaligned while pushing arguments.
  423. `FUNCTION_BOUNDARY'
  424.      Alignment required for a function entry point, in bits.
  425. `BIGGEST_ALIGNMENT'
  426.      Biggest alignment that any data type can require on this machine,
  427.      in bits.
  428. `BIGGEST_FIELD_ALIGNMENT'
  429.      Biggest alignment that any structure field can require on this
  430.      machine, in bits.  If defined, this overrides `BIGGEST_ALIGNMENT'
  431.      for structure fields only.
  432. `MAX_OFILE_ALIGNMENT'
  433.      Biggest alignment supported by the object file format of this
  434.      machine.  Use this macro to limit the alignment which can be
  435.      specified using the `__attribute__ ((aligned (N)))' construct.  If
  436.      not defined, the default value is `BIGGEST_ALIGNMENT'.
  437. `DATA_ALIGNMENT (TYPE, BASIC-ALIGN)'
  438.      If defined, a C expression to compute the alignment for a static
  439.      variable.  TYPE is the data type, and BASIC-ALIGN is the alignment
  440.      that the object would ordinarily have.  The value of this macro is
  441.      used instead of that alignment to align the object.
  442.      If this macro is not defined, then BASIC-ALIGN is used.
  443.      One use of this macro is to increase alignment of medium-size data
  444.      to make it all fit in fewer cache lines.  Another is to cause
  445.      character arrays to be word-aligned so that `strcpy' calls that
  446.      copy constants to character arrays can be done inline.
  447. `CONSTANT_ALIGNMENT (CONSTANT, BASIC-ALIGN)'
  448.      If defined, a C expression to compute the alignment given to a
  449.      constant that is being placed in memory.  CONSTANT is the constant
  450.      and BASIC-ALIGN is the alignment that the object would ordinarily
  451.      have.  The value of this macro is used instead of that alignment to
  452.      align the object.
  453.      If this macro is not defined, then BASIC-ALIGN is used.
  454.      The typical use of this macro is to increase alignment for string
  455.      constants to be word aligned so that `strcpy' calls that copy
  456.      constants can be done inline.
  457. `EMPTY_FIELD_BOUNDARY'
  458.      Alignment in bits to be given to a structure bit field that
  459.      follows an empty field such as `int : 0;'.
  460.      Note that `PCC_BITFIELD_TYPE_MATTERS' also affects the alignment
  461.      that results from an empty field.
  462. `STRUCTURE_SIZE_BOUNDARY'
  463.      Number of bits which any structure or union's size must be a
  464.      multiple of.  Each structure or union's size is rounded up to a
  465.      multiple of this.
  466.      If you do not define this macro, the default is the same as
  467.      `BITS_PER_UNIT'.
  468. `STRICT_ALIGNMENT'
  469.      Define this macro to be the value 1 if instructions will fail to
  470.      work if given data not on the nominal alignment.  If instructions
  471.      will merely go slower in that case, define this macro as 0.
  472. `PCC_BITFIELD_TYPE_MATTERS'
  473.      Define this if you wish to imitate the way many other C compilers
  474.      handle alignment of bitfields and the structures that contain them.
  475.      The behavior is that the type written for a bitfield (`int',
  476.      `short', or other integer type) imposes an alignment for the
  477.      entire structure, as if the structure really did contain an
  478.      ordinary field of that type.  In addition, the bitfield is placed
  479.      within the structure so that it would fit within such a field, not
  480.      crossing a boundary for it.
  481.      Thus, on most machines, a bitfield whose type is written as `int'
  482.      would not cross a four-byte boundary, and would force four-byte
  483.      alignment for the whole structure.  (The alignment used may not be
  484.      four bytes; it is controlled by the other alignment parameters.)
  485.      If the macro is defined, its definition should be a C expression;
  486.      a nonzero value for the expression enables this behavior.
  487.      Note that if this macro is not defined, or its value is zero, some
  488.      bitfields may cross more than one alignment boundary.  The
  489.      compiler can support such references if there are `insv', `extv',
  490.      and `extzv' insns that can directly reference memory.
  491.      The other known way of making bitfields work is to define
  492.      `STRUCTURE_SIZE_BOUNDARY' as large as `BIGGEST_ALIGNMENT'.  Then
  493.      every structure can be accessed with fullwords.
  494.      Unless the machine has bitfield instructions or you define
  495.      `STRUCTURE_SIZE_BOUNDARY' that way, you must define
  496.      `PCC_BITFIELD_TYPE_MATTERS' to have a nonzero value.
  497.      If your aim is to make GNU CC use the same conventions for laying
  498.      out bitfields as are used by another compiler, here is how to
  499.      investigate what the other compiler does.  Compile and run this
  500.      program:
  501.           struct foo1
  502.           {
  503.             char x;
  504.             char :0;
  505.             char y;
  506.           };
  507.           
  508.           struct foo2
  509.           {
  510.             char x;
  511.             int :0;
  512.             char y;
  513.           };
  514.           
  515.           main ()
  516.           {
  517.             printf ("Size of foo1 is %d\n",
  518.                     sizeof (struct foo1));
  519.             printf ("Size of foo2 is %d\n",
  520.                     sizeof (struct foo2));
  521.             exit (0);
  522.           }
  523.      If this prints 2 and 5, then the compiler's behavior is what you
  524.      would get from `PCC_BITFIELD_TYPE_MATTERS'.
  525. `BITFIELD_NBYTES_LIMITED'
  526.      Like PCC_BITFIELD_TYPE_MATTERS except that its effect is limited to
  527.      aligning a bitfield within the structure.
  528. `ROUND_TYPE_SIZE (STRUCT, SIZE, ALIGN)'
  529.      Define this macro as an expression for the overall size of a
  530.      structure (given by STRUCT as a tree node) when the size computed
  531.      from the fields is SIZE and the alignment is ALIGN.
  532.      The default is to round SIZE up to a multiple of ALIGN.
  533. `ROUND_TYPE_ALIGN (STRUCT, COMPUTED, SPECIFIED)'
  534.      Define this macro as an expression for the alignment of a structure
  535.      (given by STRUCT as a tree node) if the alignment computed in the
  536.      usual way is COMPUTED and the alignment explicitly specified was
  537.      SPECIFIED.
  538.      The default is to use SPECIFIED if it is larger; otherwise, use
  539.      the smaller of COMPUTED and `BIGGEST_ALIGNMENT'
  540. `MAX_FIXED_MODE_SIZE'
  541.      An integer expression for the size in bits of the largest integer
  542.      machine mode that should actually be used.  All integer machine
  543.      modes of this size or smaller can be used for structures and
  544.      unions with the appropriate sizes.  If this macro is undefined,
  545.      `GET_MODE_BITSIZE (DImode)' is assumed.
  546. `CHECK_FLOAT_VALUE (MODE, VALUE, OVERFLOW)'
  547.      A C statement to validate the value VALUE (of type `double') for
  548.      mode MODE.  This means that you check whether VALUE fits within
  549.      the possible range of values for mode MODE on this target machine.
  550.      The mode MODE is always a mode of class `MODE_FLOAT'.  OVERFLOW
  551.      is nonzero if the value is already known to be out of range.
  552.      If VALUE is not valid or if OVERFLOW is nonzero, you should set
  553.      OVERFLOW to 1 and then assign some valid value to VALUE.  Allowing
  554.      an invalid value to go through the compiler can produce incorrect
  555.      assembler code which may even cause Unix assemblers to crash.
  556.      This macro need not be defined if there is no work for it to do.
  557. `TARGET_FLOAT_FORMAT'
  558.      A code distinguishing the floating point format of the target
  559.      machine.  There are three defined values:
  560.     `IEEE_FLOAT_FORMAT'
  561.           This code indicates IEEE floating point.  It is the default;
  562.           there is no need to define this macro when the format is IEEE.
  563.     `VAX_FLOAT_FORMAT'
  564.           This code indicates the peculiar format used on the Vax.
  565.     `UNKNOWN_FLOAT_FORMAT'
  566.           This code indicates any other format.
  567.      The value of this macro is compared with `HOST_FLOAT_FORMAT'
  568.      (*note Config::.) to determine whether the target machine has the
  569.      same format as the host machine.  If any other formats are
  570.      actually in use on supported machines, new codes should be defined
  571.      for them.
  572.      The ordering of the component words of floating point values
  573.      stored in memory is controlled by `FLOAT_WORDS_BIG_ENDIAN' for the
  574.      target machine and `HOST_FLOAT_WORDS_BIG_ENDIAN' for the host.
  575. File: gcc.info,  Node: Type Layout,  Next: Registers,  Prev: Storage Layout,  Up: Target Macros
  576. Layout of Source Language Data Types
  577. ====================================
  578.    These macros define the sizes and other characteristics of the
  579. standard basic data types used in programs being compiled.  Unlike the
  580. macros in the previous section, these apply to specific features of C
  581. and related languages, rather than to fundamental aspects of storage
  582. layout.
  583. `INT_TYPE_SIZE'
  584.      A C expression for the size in bits of the type `int' on the
  585.      target machine.  If you don't define this, the default is one word.
  586. `MAX_INT_TYPE_SIZE'
  587.      Maximum number for the size in bits of the type `int' on the target
  588.      machine.  If this is undefined, the default is `INT_TYPE_SIZE'.
  589.      Otherwise, it is the constant value that is the largest value that
  590.      `INT_TYPE_SIZE' can have at run-time.  This is used in `cpp'.
  591. `SHORT_TYPE_SIZE'
  592.      A C expression for the size in bits of the type `short' on the
  593.      target machine.  If you don't define this, the default is half a
  594.      word.  (If this would be less than one storage unit, it is rounded
  595.      up to one unit.)
  596. `LONG_TYPE_SIZE'
  597.      A C expression for the size in bits of the type `long' on the
  598.      target machine.  If you don't define this, the default is one word.
  599. `MAX_LONG_TYPE_SIZE'
  600.      Maximum number for the size in bits of the type `long' on the
  601.      target machine.  If this is undefined, the default is
  602.      `LONG_TYPE_SIZE'.  Otherwise, it is the constant value that is the
  603.      largest value that `LONG_TYPE_SIZE' can have at run-time.  This is
  604.      used in `cpp'.
  605. `LONG_LONG_TYPE_SIZE'
  606.      A C expression for the size in bits of the type `long long' on the
  607.      target machine.  If you don't define this, the default is two
  608.      words.
  609. `CHAR_TYPE_SIZE'
  610.      A C expression for the size in bits of the type `char' on the
  611.      target machine.  If you don't define this, the default is one
  612.      quarter of a word.  (If this would be less than one storage unit,
  613.      it is rounded up to one unit.)
  614. `MAX_CHAR_TYPE_SIZE'
  615.      Maximum number for the size in bits of the type `char' on the
  616.      target machine.  If this is undefined, the default is
  617.      `CHAR_TYPE_SIZE'.  Otherwise, it is the constant value that is the
  618.      largest value that `CHAR_TYPE_SIZE' can have at run-time.  This is
  619.      used in `cpp'.
  620. `FLOAT_TYPE_SIZE'
  621.      A C expression for the size in bits of the type `float' on the
  622.      target machine.  If you don't define this, the default is one word.
  623. `DOUBLE_TYPE_SIZE'
  624.      A C expression for the size in bits of the type `double' on the
  625.      target machine.  If you don't define this, the default is two
  626.      words.
  627. `LONG_DOUBLE_TYPE_SIZE'
  628.      A C expression for the size in bits of the type `long double' on
  629.      the target machine.  If you don't define this, the default is two
  630.      words.
  631. `DEFAULT_SIGNED_CHAR'
  632.      An expression whose value is 1 or 0, according to whether the type
  633.      `char' should be signed or unsigned by default.  The user can
  634.      always override this default with the options `-fsigned-char' and
  635.      `-funsigned-char'.
  636. `DEFAULT_SHORT_ENUMS'
  637.      A C expression to determine whether to give an `enum' type only as
  638.      many bytes as it takes to represent the range of possible values
  639.      of that type.  A nonzero value means to do that; a zero value
  640.      means all `enum' types should be allocated like `int'.
  641.      If you don't define the macro, the default is 0.
  642. `SIZE_TYPE'
  643.      A C expression for a string describing the name of the data type
  644.      to use for size values.  The typedef name `size_t' is defined
  645.      using the contents of the string.
  646.      The string can contain more than one keyword.  If so, separate
  647.      them with spaces, and write first any length keyword, then
  648.      `unsigned' if appropriate, and finally `int'.  The string must
  649.      exactly match one of the data type names defined in the function
  650.      `init_decl_processing' in the file `c-decl.c'.  You may not omit
  651.      `int' or change the order--that would cause the compiler to crash
  652.      on startup.
  653.      If you don't define this macro, the default is `"long unsigned
  654.      int"'.
  655. `PTRDIFF_TYPE'
  656.      A C expression for a string describing the name of the data type
  657.      to use for the result of subtracting two pointers.  The typedef
  658.      name `ptrdiff_t' is defined using the contents of the string.  See
  659.      `SIZE_TYPE' above for more information.
  660.      If you don't define this macro, the default is `"long int"'.
  661. `WCHAR_TYPE'
  662.      A C expression for a string describing the name of the data type
  663.      to use for wide characters.  The typedef name `wchar_t' is defined
  664.      using the contents of the string.  See `SIZE_TYPE' above for more
  665.      information.
  666.      If you don't define this macro, the default is `"int"'.
  667. `WCHAR_TYPE_SIZE'
  668.      A C expression for the size in bits of the data type for wide
  669.      characters.  This is used in `cpp', which cannot make use of
  670.      `WCHAR_TYPE'.
  671. `MAX_WCHAR_TYPE_SIZE'
  672.      Maximum number for the size in bits of the data type for wide
  673.      characters.  If this is undefined, the default is
  674.      `WCHAR_TYPE_SIZE'.  Otherwise, it is the constant value that is the
  675.      largest value that `WCHAR_TYPE_SIZE' can have at run-time.  This is
  676.      used in `cpp'.
  677. `OBJC_INT_SELECTORS'
  678.      Define this macro if the type of Objective C selectors should be
  679.      `int'.
  680.      If this macro is not defined, then selectors should have the type
  681.      `struct objc_selector *'.
  682. `OBJC_SELECTORS_WITHOUT_LABELS'
  683.      Define this macro if the compiler can group all the selectors
  684.      together into a vector and use just one label at the beginning of
  685.      the vector.  Otherwise, the compiler must give each selector its
  686.      own assembler label.
  687.      On certain machines, it is important to have a separate label for
  688.      each selector because this enables the linker to eliminate
  689.      duplicate selectors.
  690. `TARGET_BELL'
  691.      A C constant expression for the integer value for escape sequence
  692.      `\a'.
  693. `TARGET_BS'
  694. `TARGET_TAB'
  695. `TARGET_NEWLINE'
  696.      C constant expressions for the integer values for escape sequences
  697.      `\b', `\t' and `\n'.
  698. `TARGET_VT'
  699. `TARGET_FF'
  700. `TARGET_CR'
  701.      C constant expressions for the integer values for escape sequences
  702.      `\v', `\f' and `\r'.
  703. File: gcc.info,  Node: Registers,  Next: Register Classes,  Prev: Type Layout,  Up: Target Macros
  704. Register Usage
  705. ==============
  706.    This section explains how to describe what registers the target
  707. machine has, and how (in general) they can be used.
  708.    The description of which registers a specific instruction can use is
  709. done with register classes; see *Note Register Classes::.  For
  710. information on using registers to access a stack frame, see *Note Frame
  711. Registers::.  For passing values in registers, see *Note Register
  712. Arguments::.  For returning values in registers, see *Note Scalar
  713. Return::.
  714. * Menu:
  715. * Register Basics::        Number and kinds of registers.
  716. * Allocation Order::        Order in which registers are allocated.
  717. * Values in Registers::        What kinds of values each reg can hold.
  718. * Leaf Functions::        Renumbering registers for leaf functions.
  719. * Stack Registers::        Handling a register stack such as 80387.
  720. * Obsolete Register Macros::    Macros formerly used for the 80387.
  721. File: gcc.info,  Node: Register Basics,  Next: Allocation Order,  Up: Registers
  722. Basic Characteristics of Registers
  723. ----------------------------------
  724.    Registers have various characteristics.
  725. `FIRST_PSEUDO_REGISTER'
  726.      Number of hardware registers known to the compiler.  They receive
  727.      numbers 0 through `FIRST_PSEUDO_REGISTER-1'; thus, the first
  728.      pseudo register's number really is assigned the number
  729.      `FIRST_PSEUDO_REGISTER'.
  730. `FIXED_REGISTERS'
  731.      An initializer that says which registers are used for fixed
  732.      purposes all throughout the compiled code and are therefore not
  733.      available for general allocation.  These would include the stack
  734.      pointer, the frame pointer (except on machines where that can be
  735.      used as a general register when no frame pointer is needed), the
  736.      program counter on machines where that is considered one of the
  737.      addressable registers, and any other numbered register with a
  738.      standard use.
  739.      This information is expressed as a sequence of numbers, separated
  740.      by commas and surrounded by braces.  The Nth number is 1 if
  741.      register N is fixed, 0 otherwise.
  742.      The table initialized from this macro, and the table initialized by
  743.      the following one, may be overridden at run time either
  744.      automatically, by the actions of the macro
  745.      `CONDITIONAL_REGISTER_USAGE', or by the user with the command
  746.      options `-ffixed-REG', `-fcall-used-REG' and `-fcall-saved-REG'.
  747. `CALL_USED_REGISTERS'
  748.      Like `FIXED_REGISTERS' but has 1 for each register that is
  749.      clobbered (in general) by function calls as well as for fixed
  750.      registers.  This macro therefore identifies the registers that are
  751.      not available for general allocation of values that must live
  752.      across function calls.
  753.      If a register has 0 in `CALL_USED_REGISTERS', the compiler
  754.      automatically saves it on function entry and restores it on
  755.      function exit, if the register is used within the function.
  756. `CONDITIONAL_REGISTER_USAGE'
  757.      Zero or more C statements that may conditionally modify two
  758.      variables `fixed_regs' and `call_used_regs' (both of type `char
  759.      []') after they have been initialized from the two preceding
  760.      macros.
  761.      This is necessary in case the fixed or call-clobbered registers
  762.      depend on target flags.
  763.      You need not define this macro if it has no work to do.
  764.      If the usage of an entire class of registers depends on the target
  765.      flags, you may indicate this to GCC by using this macro to modify
  766.      `fixed_regs' and `call_used_regs' to 1 for each of the registers
  767.      in the classes which should not be used by GCC.  Also define the
  768.      macro `REG_CLASS_FROM_LETTER' to return `NO_REGS' if it is called
  769.      with a letter for a class that shouldn't be used.
  770.      (However, if this class is not included in `GENERAL_REGS' and all
  771.      of the insn patterns whose constraints permit this class are
  772.      controlled by target switches, then GCC will automatically avoid
  773.      using these registers when the target switches are opposed to
  774.      them.)
  775. `NON_SAVING_SETJMP'
  776.      If this macro is defined and has a nonzero value, it means that
  777.      `setjmp' and related functions fail to save the registers, or that
  778.      `longjmp' fails to restore them.  To compensate, the compiler
  779.      avoids putting variables in registers in functions that use
  780.      `setjmp'.
  781. `INCOMING_REGNO (OUT)'
  782.      Define this macro if the target machine has register windows.
  783.      This C expression returns the register number as seen by the
  784.      called function corresponding to the register number OUT as seen
  785.      by the calling function.  Return OUT if register number OUT is not
  786.      an outbound register.
  787. `OUTGOING_REGNO (IN)'
  788.      Define this macro if the target machine has register windows.
  789.      This C expression returns the register number as seen by the
  790.      calling function corresponding to the register number IN as seen
  791.      by the called function.  Return IN if register number IN is not an
  792.      inbound register.
  793. File: gcc.info,  Node: Allocation Order,  Next: Values in Registers,  Prev: Register Basics,  Up: Registers
  794. Order of Allocation of Registers
  795. --------------------------------
  796.    Registers are allocated in order.
  797. `REG_ALLOC_ORDER'
  798.      If defined, an initializer for a vector of integers, containing the
  799.      numbers of hard registers in the order in which GNU CC should
  800.      prefer to use them (from most preferred to least).
  801.      If this macro is not defined, registers are used lowest numbered
  802.      first (all else being equal).
  803.      One use of this macro is on machines where the highest numbered
  804.      registers must always be saved and the save-multiple-registers
  805.      instruction supports only sequences of consecutive registers.  On
  806.      such machines, define `REG_ALLOC_ORDER' to be an initializer that
  807.      lists the highest numbered allocatable register first.
  808. `ORDER_REGS_FOR_LOCAL_ALLOC'
  809.      A C statement (sans semicolon) to choose the order in which to
  810.      allocate hard registers for pseudo-registers local to a basic
  811.      block.
  812.      Store the desired register order in the array `reg_alloc_order'.
  813.      Element 0 should be the register to allocate first; element 1, the
  814.      next register; and so on.
  815.      The macro body should not assume anything about the contents of
  816.      `reg_alloc_order' before execution of the macro.
  817.      On most machines, it is not necessary to define this macro.
  818. File: gcc.info,  Node: Values in Registers,  Next: Leaf Functions,  Prev: Allocation Order,  Up: Registers
  819. How Values Fit in Registers
  820. ---------------------------
  821.    This section discusses the macros that describe which kinds of values
  822. (specifically, which machine modes) each register can hold, and how many
  823. consecutive registers are needed for a given mode.
  824. `HARD_REGNO_NREGS (REGNO, MODE)'
  825.      A C expression for the number of consecutive hard registers,
  826.      starting at register number REGNO, required to hold a value of mode
  827.      MODE.
  828.      On a machine where all registers are exactly one word, a suitable
  829.      definition of this macro is
  830.           #define HARD_REGNO_NREGS(REGNO, MODE)            \
  831.              ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1)  \
  832.               / UNITS_PER_WORD))
  833. `HARD_REGNO_MODE_OK (REGNO, MODE)'
  834.      A C expression that is nonzero if it is permissible to store a
  835.      value of mode MODE in hard register number REGNO (or in several
  836.      registers starting with that one).  For a machine where all
  837.      registers are equivalent, a suitable definition is
  838.           #define HARD_REGNO_MODE_OK(REGNO, MODE) 1
  839.      It is not necessary for this macro to check for the numbers of
  840.      fixed registers, because the allocation mechanism considers them
  841.      to be always occupied.
  842.      On some machines, double-precision values must be kept in even/odd
  843.      register pairs.  The way to implement that is to define this macro
  844.      to reject odd register numbers for such modes.
  845.      The minimum requirement for a mode to be OK in a register is that
  846.      the `movMODE' instruction pattern support moves between the
  847.      register and any other hard register for which the mode is OK; and
  848.      that moving a value into the register and back out not alter it.
  849.      Since the same instruction used to move `SImode' will work for all
  850.      narrower integer modes, it is not necessary on any machine for
  851.      `HARD_REGNO_MODE_OK' to distinguish between these modes, provided
  852.      you define patterns `movhi', etc., to take advantage of this.  This
  853.      is useful because of the interaction between `HARD_REGNO_MODE_OK'
  854.      and `MODES_TIEABLE_P'; it is very desirable for all integer modes
  855.      to be tieable.
  856.      Many machines have special registers for floating point arithmetic.
  857.      Often people assume that floating point machine modes are allowed
  858.      only in floating point registers.  This is not true.  Any
  859.      registers that can hold integers can safely *hold* a floating
  860.      point machine mode, whether or not floating arithmetic can be done
  861.      on it in those registers.  Integer move instructions can be used
  862.      to move the values.
  863.      On some machines, though, the converse is true: fixed-point machine
  864.      modes may not go in floating registers.  This is true if the
  865.      floating registers normalize any value stored in them, because
  866.      storing a non-floating value there would garble it.  In this case,
  867.      `HARD_REGNO_MODE_OK' should reject fixed-point machine modes in
  868.      floating registers.  But if the floating registers do not
  869.      automatically normalize, if you can store any bit pattern in one
  870.      and retrieve it unchanged without a trap, then any machine mode
  871.      may go in a floating register, so you can define this macro to say
  872.      so.
  873.      The primary significance of special floating registers is rather
  874.      that they are the registers acceptable in floating point arithmetic
  875.      instructions.  However, this is of no concern to
  876.      `HARD_REGNO_MODE_OK'.  You handle it by writing the proper
  877.      constraints for those instructions.
  878.      On some machines, the floating registers are especially slow to
  879.      access, so that it is better to store a value in a stack frame
  880.      than in such a register if floating point arithmetic is not being
  881.      done.  As long as the floating registers are not in class
  882.      `GENERAL_REGS', they will not be used unless some pattern's
  883.      constraint asks for one.
  884. `MODES_TIEABLE_P (MODE1, MODE2)'
  885.      A C expression that is nonzero if it is desirable to choose
  886.      register allocation so as to avoid move instructions between a
  887.      value of mode MODE1 and a value of mode MODE2.
  888.      If `HARD_REGNO_MODE_OK (R, MODE1)' and `HARD_REGNO_MODE_OK (R,
  889.      MODE2)' are ever different for any R, then `MODES_TIEABLE_P (MODE1,
  890.      MODE2)' must be zero.
  891. File: gcc.info,  Node: Leaf Functions,  Next: Stack Registers,  Prev: Values in Registers,  Up: Registers
  892. Handling Leaf Functions
  893. -----------------------
  894.    On some machines, a leaf function (i.e., one which makes no calls)
  895. can run more efficiently if it does not make its own register window.
  896. Often this means it is required to receive its arguments in the
  897. registers where they are passed by the caller, instead of the registers
  898. where they would normally arrive.
  899.    The special treatment for leaf functions generally applies only when
  900. other conditions are met; for example, often they may use only those
  901. registers for its own variables and temporaries.  We use the term "leaf
  902. function" to mean a function that is suitable for this special
  903. handling, so that functions with no calls are not necessarily "leaf
  904. functions".
  905.    GNU CC assigns register numbers before it knows whether the function
  906. is suitable for leaf function treatment.  So it needs to renumber the
  907. registers in order to output a leaf function.  The following macros
  908. accomplish this.
  909. `LEAF_REGISTERS'
  910.      A C initializer for a vector, indexed by hard register number,
  911.      which contains 1 for a register that is allowable in a candidate
  912.      for leaf function treatment.
  913.      If leaf function treatment involves renumbering the registers,
  914.      then the registers marked here should be the ones before
  915.      renumbering--those that GNU CC would ordinarily allocate.  The
  916.      registers which will actually be used in the assembler code, after
  917.      renumbering, should not be marked with 1 in this vector.
  918.      Define this macro only if the target machine offers a way to
  919.      optimize the treatment of leaf functions.
  920. `LEAF_REG_REMAP (REGNO)'
  921.      A C expression whose value is the register number to which REGNO
  922.      should be renumbered, when a function is treated as a leaf
  923.      function.
  924.      If REGNO is a register number which should not appear in a leaf
  925.      function before renumbering, then the expression should yield -1,
  926.      which will cause the compiler to abort.
  927.      Define this macro only if the target machine offers a way to
  928.      optimize the treatment of leaf functions, and registers need to be
  929.      renumbered to do this.
  930.    Normally, `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE' must treat
  931. leaf functions specially.  It can test the C variable `leaf_function'
  932. which is nonzero for leaf functions.  (The variable `leaf_function' is
  933. defined only if `LEAF_REGISTERS' is defined.)
  934. File: gcc.info,  Node: Stack Registers,  Next: Obsolete Register Macros,  Prev: Leaf Functions,  Up: Registers
  935. Registers That Form a Stack
  936. ---------------------------
  937.    There are special features to handle computers where some of the
  938. "registers" form a stack, as in the 80387 coprocessor for the 80386.
  939. Stack registers are normally written by pushing onto the stack, and are
  940. numbered relative to the top of the stack.
  941.    Currently, GNU CC can only handle one group of stack-like registers,
  942. and they must be consecutively numbered.
  943. `STACK_REGS'
  944.      Define this if the machine has any stack-like registers.
  945. `FIRST_STACK_REG'
  946.      The number of the first stack-like register.  This one is the top
  947.      of the stack.
  948. `LAST_STACK_REG'
  949.      The number of the last stack-like register.  This one is the
  950.      bottom of the stack.
  951.